<!DOCTYPE html>
<html>
<head>
	<title></title>
	<meta charset="utf-8">
	<script type="text/javascript" src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>

</head>
<body>
	<div class="conster">	
<dl>
	{foreach $getreeList as $v}
	{if $v['parent_id'] == 0}
	<dt style="cursor: pointer;" class="{$v['power_id']}"><b>{$v['power_name']}</b></dt>
	{else}
	<dd class="{$v['parent_id']}"><a href="/admin/{$v['controller_name']}/{$v['action_name']}">{$v['power_name']}</a></dd>
	{/if}
	{/foreach}
</dl>
</div>
<a href="{:url('/loginOut')}">退出</a>
</body>
</html>
<script type="text/javascript">
	$('dt').click(function(){
		//获取dt标签的class值 也即是父级ID
		var power_id = $(this).prop('class');
		$("dd[class='"+power_id+"']").toggle();	

	})
</script>